<template>
  <button @click="add">按钮</button>
  <p>{{  count  }}</p>
</template>

<script>
export default {
  data() {
    return {
      count: 0
    }
  },
  methods: {
    add() {
      this.count++
    }
  }
}
</script>
